// header / 所有分类 / 点击动画
var all_class_h2 = $(".header_bottom .all_class h2"),
    all_class_ul = $(".header_bottom .all_class ul");
all_class_h2.on("click",function(){
  if(all_class_ul.css("display") == "none"){
    all_class_ul.slideDown(500);
  }else{
    all_class_ul.slideUp(500);
  }
})

console.log(window.innerWidth);
var w = window.innerWidth;
$(".pip span").text(w);

// 合作案例 / 点击动画
var next = $(".pic_next");
// console.log(next);
next.on("click",function(){
  $(this).siblings(".pic_prev").stop().animate({
    "z-index":"5",
    "width":"420px",
    "height":"280px",
    "top":"-30px",
    "left":"150px"
  },400);
  $(this).prev().stop().animate({
    "z-index":"0",
    "width":"300px",
    "height":"200px",
    "top":"0",
    "left":"420px"
  },400);
  $(this).stop().animate({
    "z-index":"0",
    "width":"300px",
    "height":"200px",
    "top":"0",
    "left":"0"
  },2000);
  $(this).removeClass("pic_next");
  $(this).next().addClass("pic_next");
  $(this).next().removeClass("pic_current");
  $(this).prev().addClass("pic_current");
  $(this).prev().removeClass("pic_prev");
  $(this).addClass(".pic_prev");
  // var next1 = $(".pic_next");
  // next = next1;
  // console.log(next);
})

var prev = $(".pic_prev");
// console.log(prev);
prev.on("click",function(){
  $(this).stop().animate({
    "z-index":"5",
    "width":"420px",
    "height":"280px",
    "top":"-30px",
    "left":"150px"
  },400);
  $(this).next().stop().animate({
    "z-index":"0",
    "width":"300px",
    "height":"200px",
    "top":"0",
    "left":"420px"
  },400);
  $(this).siblings(".pic_next").stop().animate({
    "z-index":"0",
    "width":"300px",
    "height":"200px",
    "top":"0",
    "left":"0"
  },400);
  console.log(this)
  $(this).css("position","absolute")
  $(this).removeClass("pic_prev");
  $(this).next().addClass("pic_next");
  $(this).next().removeClass("pic_current");
  $(this).siblings(".pic_next").addClass("pic_prev");
  $(this).siblings(".pic_next").removeClass("pic_next");
  $(this).addClass(".pic_current");
  // var prev1 = $(".pic_prev");
  // prev = prev1;
  // console.log(prev);
})